package net.ericaro.neojavagen.blocks;

/**
 * <b>ExpressionStatement</b> ::= <{@link net .ericaro .neojavagen .blocks .StatementExpression StatementExpression}> ";"
 * 
 * @author eric@ericaro.net
 */
public class ExpressionStatement extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.blocks.StatementWithoutTrailingSubstatement {
	private net.ericaro.neojavagen.blocks.StatementExpression statementExpression;

	public ExpressionStatement(net.ericaro.neojavagen.blocks.StatementExpression statementExpression) {
		super();
		this.statementExpression = statementExpression;
	}

	public net.ericaro.neojavagen.blocks.StatementExpression getStatementExpression() {
		return statementExpression;
	}

	public void setStatementExpression(net.ericaro.neojavagen.blocks.StatementExpression statementExpression) {
		this.statementExpression = statementExpression;
	}

	@Override
	public java.lang.String toString() {
		return print(statementExpression, ";");
	}
}
